<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022-05-25
  Time: 19:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h3>修改商品</h3>
<form action="/brand-demo/update" method="post">

    <input type="hidden" name="id" value="${brand.id}">
    品牌名称：<input name="brandName" type="text" value="${brand.brandName}"><br>
    企业名称：<input type="text" name="companyName" value="${brand.companyName}"><br>
    排序：<input type="text" name="ordered" value="${brand.ordered}"><br>
    描述信息：<textarea rows="5" cols="20" name="descript">${brand.descript}</textarea><br>
    状态：
    <c:if test="${brand.status == 0}">
        <input type="radio" name="status" value="0" checked>禁用
        <input type="radio" name="status" value="1">启用 <br>
    </c:if>
    <c:if test="${brand.status == 1}">
        <input type="radio" name="status" value="1">禁用
        <input type="radio" name="status" value="0" checked>启用 <br>
    </c:if>

    <input type="submit" value="提交">
</form>
</body>
</html>
